package cn.topevery.garden.entity.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.topevery.garden.entity.po.InteractPlatformFile;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 互动平台 视图
 *
 * @author code-generate
 * @date 2022-02-18
 */
@Data
@ApiModel(value = "InteractPlatform 视图", description = "互动平台 视图")
public class InteractPlatformVO implements Serializable{
    /**
     * 自增id
     */
    private Integer id;

        /**
     * 发送人ID
     */
    @ApiModelProperty(value = "发送人ID")
    @Excel(name = "发送人ID", orderNum = "0")
    private String senderId;

    /**
     * 发送人昵称
     */
    @ApiModelProperty(value = "发送人昵称")
    @Excel(name = "发送人昵称", orderNum = "0")
    private String senderName;

    /**
     * 接收人ID
     */
    @ApiModelProperty(value = "接收人ID")
    @Excel(name = "接收人ID", orderNum = "0")
    private String receiveId;

    /**
     * 接收人昵称
     */
    @ApiModelProperty(value = "接收人昵称")
    @Excel(name = "接收人昵称", orderNum = "0")
    private String receiveName;

    /**
     * 发送内容
     */
    @ApiModelProperty(value = "发送内容")
    @Excel(name = "发送内容", orderNum = "0")
    private String content;

    /**
     * 发送的附件url
     */
    @ApiModelProperty(value = "发送的附件url")
    @Excel(name = "发送的附件url", orderNum = "0")
    private String fileUrl;

    @ApiModelProperty(value = "关联id")
    private Integer relId;

    @ApiModelProperty(value = "留言时间")
    @Excel(name = "留言时间", orderNum = "0")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dbCreateDate;

    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dbLastUpdateDate;

    private String dbCreateId;

    private String treeId;

    private String treeCode;

    private String treeName;

    private String phone;

    private String evtId ;

    private Integer status;

    private Double Lng;

    private Double lat;

    private String address;

    @ApiModelProperty(value = "附件")
    private List<InteractPlatformFile> fileList;
}
